package com.sian.security.utils;

import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;

import com.sian.security.utils.MD5;
import com.sian.security.utils.SHA1;
import com.sian.security.utils.UNHEX;

@RunWith(JUnit4.class)
public class MD5TestCase {
	protected final Logger logger = LogManager.getLogger(getClass());
	
	@Test
	public void testMD5()
	{
		logger.debug(MD5.encode("admin/"));
	}
	
	@Test
	public void testSHA1()
	{
		String encode = SHA1.encode("admin/");
		logger.debug(encode);
		
		encode = UNHEX.encode(encode);
		logger.debug(encode);
		
		encode = SHA1.encode(encode);
		logger.debug(encode);
	}
	
	@Test
	public void testUNHEX()
	{
		String encode = UNHEX.encode("4D7953514C");
		logger.debug(encode);
	}
}
